package com.ruoyi.ratedemo.mapper;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.ruoyi.ratedemo.domain.Friend;
import com.ruoyi.ratedemo.table.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FriendMapper {
    List getFriendsByUserId(@Param("userId") int userId);
    int countFriends(Integer userId,Integer friendId);
    int addFriend(Integer userId,Integer friendId);
    int deleteFriend(Integer userId,Integer friendId);
    User getUserById(Integer userId);
}
